package com.jdojo.intro;

import javafx.application.Application;
import javafx.application.Platform;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.VBox;
import javafx.scene.text.Text;
import javafx.stage.Stage;

/**
 * @author zhufeifei
 * @date 2024-04-15 11:28
 */
public class HelloFXApp extends Application {

    public static void main(String[] args) {
        Application.launch(args);
    }

    @Override
    public void start(Stage stage) {
        VBox root = new VBox();

        Text msg = new Text("你好 JavaFx");

        root.getChildren().add(msg);

        Scene scene = new Scene(root, 300, 50);

        stage.setScene(scene);

        stage.setTitle("你好, JavaFX!");
        stage.show();
    }
}
